﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuantityRegistCourseList.aspx.cs" Inherits="CourseListManagement_QuantityRegistCourseList" %>
<%@ Register Assembly="AjaxControlToolkit"  Namespace="AjaxControlToolkit"    TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function SetTrainingClassSelectedValue(source, eventArgs) {
            var targetControlId = source.get_element().id; //得到textbox的id
            var index = targetControlId.substring(13, targetControlId.length); //获取行号
            //alert(index + "," + eventArgs.get_value());
            document.getElementById('HidTrainClass' + index).value = eventArgs.get_value();
            document.getElementById('txtTrainClass' + index).value = eventArgs.get_text();
        }

        function SetClassRoomSelectedValue(source, eventArgs) {
            var targetControlId = source.get_element().id; //得到textbox的id
            var index = targetControlId.substring(12, targetControlId.length); //获取行号

            
            document.getElementById('HidClassRoom' + index).value = eventArgs.get_value();
            document.getElementById('txtClassRoom' + index).value = eventArgs.get_text();

        }
        function SetTeacherSelectedValue(source,eventArgs) {

            var targetcontrolId = source.get_element().id;
            var index = targetcontrolId.substring(10, targetcontrolId.length);
            document.getElementById('HidTeacher' + index).value = eventArgs.get_value();
            document.getElementById('txtTeacher' + index).value = eventArgs.get_text();
        }
        function SetCourseValue(source, eventArgs) {

            var targetcontrolId = source.get_element().id;
            var index = targetcontrolId.substring(9, targetcontrolId.length);

            document.getElementById('HidCourse' + index).value = eventArgs.get_value();
            document.getElementById('txtCourse' + index).value = eventArgs.get_text();

        }
        
        
    </script>
     <style type="text/css">
    /* AutoComplete 被选择的项目 */
.autocomplete_highlightedListItem
{
background-color: #bfbfbf;
color: black;
padding: 1px;

}

/* AutoComplete 列表 */
.autocomplete_listItem 
{
background-color: window;
color: windowtext;
padding: 1px;
}
.CompletionListCssClass
{
	width:90px;
    height:200px;
    border:1px solid;
    overflow: auto;
}
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
     <div style="margin-left: 5px">
            <div class="title">批量录入课程表信息</div>
                   <table class="tab_alt" style="width: 95%" cellpadding="0" cellspacing="0" >
                    <tr class="header">
                    <td class="noWrapTD">序号</td>
                    <td class="noWrapTD" >培训班</td>
                    <td class="noWrapTD">课程</td>
                    <td class="noWrapTD">教室</td>
                    <td class="noWrapTD">教师</td>
                    <td class="noWrapTD">开课日期</td>
                    <td class="noWrapTD">结课日期</td>
                    <td class="noWrapTD">开始时间</td>
                    <td class="noWrapTD">结束时间</td>
                    <%--<td class="noWrapTD">操作</td>--%>
                    </tr>
                    <%--第一行--%>
                    <tr id="tr1">
                    <td>1</td>
                    <td><asp:TextBox ID="txtTrainClass1" runat="server" AutoPostBack="true"  ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName1" 
                            runat="server" TargetControlID="txtTrainClass1" BehaviorID="AceTrainClassName1" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass1" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse1" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse1" 
                            runat="server" TargetControlID="txtCourse1"  BehaviorID="AcetxtCourse1" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse1" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom1" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom1" 
                            runat="server" TargetControlID="txtClassRoom1" BehaviorID="AcetxtClassRoom1" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom1" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher1" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher1" 
                            runat="server" TargetControlID="txtTeacher1" BehaviorID="AcetxtTeacher1" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher1" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate1" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate1" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        <asp:TextBox ID="txtStartime1" Width="90px"  runat="server" CssClass="inp1 Wdate" onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndTime1" Width="90px" runat="server" CssClass="inp1 Wdate" onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                    <%--<td> 
                        
                        <asp:TextBox ID="txtStartime1" Width="90px" runat="server"  CssClass="inp3" 
                           ></asp:TextBox>
                              <ajaxToolkit:AutoCompleteExtender ID="AceStartTime" 
                            runat="server" TargetControlID="txtStartime1" BehaviorID="AceStartTime" CompletionInterval="1000" EnableCaching="true"   CompletionSetCount="10" 
                            UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseTime"
                              CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListCssClass="CompletionListCssClass" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                            
                        </td>
                    <td><asp:TextBox ID="txtEndTime1" Width="90px"  CssClass="inp3" runat="server"></asp:TextBox>
                    <ajaxToolkit:AutoCompleteExtender ID="ActtxtEndTime" 
                            runat="server" TargetControlID="txtEndTime1" BehaviorID="AceEndTime1" CompletionInterval="1000" EnableCaching="true"   CompletionSetCount="10" 
                            UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseTime" 
                              CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListCssClass="CompletionListCssClass" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                    </td>--%>
                    <td>
                        <asp:Label ID="labManage1" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    
                    <%--第二行--%>
                    <tr id="tr2">
                    <td>2</td>
                    <td><asp:TextBox ID="txtTrainClass2" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName2" 
                            runat="server" TargetControlID="txtTrainClass2" BehaviorID="AceTrainClassName2" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass2" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse2" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse2" 
                            runat="server" TargetControlID="txtCourse2"  BehaviorID="AcetxtCourse2" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse2" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom2" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom2" 
                            runat="server" TargetControlID="txtClassRoom2" BehaviorID="AcetxtClassRoom2" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom2" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher2" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher2" 
                            runat="server" TargetControlID="txtTeacher2" BehaviorID="AcetxtTeacher2" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher2" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate2" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate2" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime2" Width="90px"  runat="server" CssClass="inp1 Wdate" onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndTime2" Width="90px" runat="server" CssClass="inp1 Wdate" onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                    <td>
                        <asp:Label ID="labManage2" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <%--第三行--%>
                    <tr id="tr3">
                    <td>3</td>
                    <td><asp:TextBox ID="txtTrainClass3" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName3" 
                            runat="server" TargetControlID="txtTrainClass3" BehaviorID="AceTrainClassName3" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass3" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse3" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse3" 
                            runat="server" TargetControlID="txtCourse3"  BehaviorID="AcetxtCourse3" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse3" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom3" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom3" 
                            runat="server" TargetControlID="txtClassRoom3" BehaviorID="AcetxtClassRoom3" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom3" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher3" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher3" 
                            runat="server" TargetControlID="txtTeacher3" BehaviorID="AcetxtTeacher3" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher3" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate3" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate3" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime3" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndTime3" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage3" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                       <%--第四行--%>
                    <tr id="tr4">
                    <td>4</td>
                    <td><asp:TextBox ID="txtTrainClass4" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName4" 
                            runat="server" TargetControlID="txtTrainClass4" BehaviorID="AceTrainClassName4" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass4" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse4" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse4" 
                            runat="server" TargetControlID="txtCourse4"  BehaviorID="AcetxtCourse4" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse4" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom4" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom4" 
                            runat="server" TargetControlID="txtClassRoom4" BehaviorID="AcetxtClassRoom4" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom4" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher4" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher4" 
                            runat="server" TargetControlID="txtTeacher4" BehaviorID="AcetxtTeacher4" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher4" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate4" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                            
                    <td><asp:TextBox ID="txtEndDate4" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime4" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime4" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage4" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                       <%--第五行--%>
                    <tr id="tr5">
                    <td>5</td>
                    <td><asp:TextBox ID="txtTrainClass5" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName5" 
                            runat="server" TargetControlID="txtTrainClass5" BehaviorID="AceTrainClassName5" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass5" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse5" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse5" 
                            runat="server" TargetControlID="txtCourse5"  BehaviorID="AcetxtCourse5" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse5" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom5" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom5" 
                            runat="server" TargetControlID="txtClassRoom5" BehaviorID="AcetxtClassRoom5" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom5" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher5" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher5" 
                            runat="server" TargetControlID="txtTeacher5" BehaviorID="AcetxtTeacher5" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher5" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate5" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate5" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime5" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime5" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage5" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    
                       <%--第六行--%>
                    <tr id="tr6">
                    <td>6</td>
                    <td><asp:TextBox ID="txtTrainClass6" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName6" 
                            runat="server" TargetControlID="txtTrainClass6" BehaviorID="AceTrainClassName6" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass6" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse6" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse6" 
                            runat="server" TargetControlID="txtCourse6"  BehaviorID="AcetxtCourse6" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse6" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom6" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom6" 
                            runat="server" TargetControlID="txtClassRoom6" BehaviorID="AcetxtClassRoom6" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom6" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher6" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher6" 
                            runat="server" TargetControlID="txtTeacher6" BehaviorID="AcetxtTeacher6" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher6" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate6" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate6" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime6" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime6" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage6" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                       <%--第七行--%>
                    <tr id="tr7">
                    <td>7</td>
                    <td><asp:TextBox ID="txtTrainClass7" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName7" 
                            runat="server" TargetControlID="txtTrainClass7" BehaviorID="AceTrainClassName7" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass7" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse7" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse7" 
                            runat="server" TargetControlID="txtCourse7"  BehaviorID="AcetxtCourse7" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse7" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom7" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom7" 
                            runat="server" TargetControlID="txtClassRoom7" BehaviorID="AcetxtClassRoom7" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom7" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher7" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher7" 
                            runat="server" TargetControlID="txtTeacher7" BehaviorID="AcetxtTeacher7" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher7" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate7" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate7" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime7" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime7" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage7" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    
                       <%--第八行--%>
                    <tr id="tr8">
                    <td>8</td>
                    <td><asp:TextBox ID="txtTrainClass8" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName8" 
                            runat="server" TargetControlID="txtTrainClass8" BehaviorID="AceTrainClassName8" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass8" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse8" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse8" 
                            runat="server" TargetControlID="txtCourse8"  BehaviorID="AcetxtCourse8" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse8" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom8" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom8" 
                            runat="server" TargetControlID="txtClassRoom8" BehaviorID="AcetxtClassRoom8" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom8" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher8" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher8" 
                            runat="server" TargetControlID="txtTeacher8" BehaviorID="AcetxtTeacher8" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher8" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate8" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate8" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime8" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime8" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage8" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                       <%--第九行--%>
                    <tr id="tr9">
                    <td>9</td>
                    <td><asp:TextBox ID="txtTrainClass9" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName9" 
                            runat="server" TargetControlID="txtTrainClass9" BehaviorID="AceTrainClassName9" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass9" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse9" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse9" 
                            runat="server" TargetControlID="txtCourse9"  BehaviorID="AcetxtCourse9" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse9" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom9" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom9" 
                            runat="server" TargetControlID="txtClassRoom9" BehaviorID="AcetxtClassRoom9" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom9" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher9" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher9" 
                            runat="server" TargetControlID="txtTeacher9" BehaviorID="AcetxtTeacher9" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher9" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate9" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate9" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime9" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime9" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage9" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                       <%--第十行--%>
                    <tr id="tr10">
                    <td>10</td>
                    <td><asp:TextBox ID="txtTrainClass10" runat="server" AutoPostBack="true" ontextchanged="txtTrainClass_TextChanged" Width="120px" CssClass="inp3" ></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AceTrainClassName10" 
                            runat="server" TargetControlID="txtTrainClass10" BehaviorID="AceTrainClassName10" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetTrainingClassSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTrainClassById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTrainClass10" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtCourse10" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtCourse10" 
                            runat="server" TargetControlID="txtCourse10"  BehaviorID="AcetxtCourse10" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetCourseValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetCourseById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidCourse10" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtClassRoom10" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtClassRoom10" 
                            runat="server" TargetControlID="txtClassRoom10" BehaviorID="AcetxtClassRoom10" CompletionInterval="1000" EnableCaching="true"  OnClientItemSelected="SetClassRoomSelectedValue"  CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetClassRoomById"  CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidClassRoom10" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtTeacher10" runat="server" Width="90px"  CssClass="inp3"></asp:TextBox>
                        <ajaxToolkit:AutoCompleteExtender ID="AcetxtTeacher10" 
                            runat="server" TargetControlID="txtTeacher10" BehaviorID="AcetxtTeacher10" CompletionInterval="1000" EnableCaching="true" OnClientItemSelected="SetTeacherSelectedValue" CompletionSetCount="10" UseContextKey="true" MinimumPrefixLength="0" ServiceMethod="GetTeacherById" CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" CompletionListItemCssClass="autocomplete_listItem">
                        </ajaxToolkit:AutoCompleteExtender>
                        <asp:HiddenField ID="HidTeacher10" runat="server" Value="0"/>
                        </td>
                    <td><asp:TextBox ID="txtStarDate10" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td><asp:TextBox ID="txtEndDate10" runat="server" Width="90px" CssClass="inp1 Wdate" 
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})"></asp:TextBox></td>
                    <td> 
                        
                        <asp:TextBox ID="txtStartime10" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox>
                        </td>
                    <td><asp:TextBox ID="txtEndtime10" Width="90px" runat="server" CssClass="inp1 Wdate" 
                            onfocus="WdatePicker({dateFmt:'HH:mm',minDate:'07:00',maxDate:'23:00'})"></asp:TextBox></td>
                            <td>
                        <asp:Label ID="labManage10" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>

                    </table>
 <asp:Button ID="btnAdd" runat="server" Text="保存" CssClass="button" 
                            onclick="btnAdd_Click"/>&nbsp;&nbsp;&nbsp; 
                        <asp:Button ID="btnRedirectList" runat="server" Text="返回课程列表" CssClass="button"  Width="120px"
                            onclick="btnRedirectList_Click" />&nbsp;&nbsp;
            <asp:Button ID="btnCourseList" runat="server" Text="返回" CssClass="button" 
                onclick="btnCourseList_Click" />
    </div>
    </form>
</body>
</html>
